package com.ytrsoft.service;

import com.ytrsoft.entity.User;
import com.ytrsoft.repository.UserRepository;
import org.springframework.stereotype.Service;

@Service
public class UserService extends BaseService<User> {

    private final UserRepository userRepository;

    public UserService(UserRepository userRepository) {
        super(userRepository);
        this.userRepository = userRepository;
    }

    public User findByDeviceId(String deviceId) {
        return userRepository.findByDeviceId(deviceId);
    }

}
